package com.study.designPattern.adapter;

/**
 * Created by HBZ on 2017/5/17.
 */
public class Adapter implements Target {

    private Adaptee adaptee;

    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void adapteeMethod() {
        adaptee.adapteeMethod();
        System.out.println("new operate");
    }

    @Override
    public void adapterMethod() {
        System.out.println("Adapter method!");
    }
}